# @Time : 2021/5/13 15:48 

# @Author : zhujianhao

# @File : main.py 

# @Software: PyCharm
import pytest
import os
if __name__ == '__main__':
    # pytest.main("-s cf-test.py")
    # pytest.main["-m", "smoke"]
    # 运行测试用例，存放到指定目录
    os.system("pytest --alluredir ./report")
    # 生成网页报告
    os.system("allure generate ./report --clean")
    # 打开网页服务
    os.system("allure open allure-report")